home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-20 | 1.2 KB | 35 lines | [TEXT/GEOL] |
- Item 1225496 18-Oct-89 16:28
-
- From: D2086 Efficient Field Svc, C Faith,PRT
-
- To: MACAPP.TECH$ MACAPP Tech
-
- Sub: Global Printing of Windows
-
- I have an application that I use to prototype view resources and other user
- interface issues.
-
- I want to be able to have a menu item that Prints one copy of the front window.
-
- I am running into trouble.
-
- I have global PrindHandler that I want to merely assign to each window on the
- fly. I hate to have to create a new printhandler etc for every prototype.
- What do I have to do to get this to work?
-
- I currently call AttachPrintHandler to attach gPrintHandler to the Active
- Window and also set the fView field of the PrintHandler to the Active Window.
-
- In addition I have modified the PrintCommand that PrintOne creates to set the
- fPrintHandler field of the TWindow back to NIL so that it does not get freed
- with the window.
-
- I keep getting system error id 12 when I try printing! It goes far enough that
- after every bomb PrintMonitor tells me that what I tried to print was corrupt.
- I must be forgetting to initialize something or to call a needed method.
-
- Any ideas?
-
- - Curtis Faith
-
-